package com.apac.bom;

import java.io.Serializable;
import javax.persistence.*;
import java.util.List;


/**
 * The persistent class for the account_report_tbl database table.
 * 
 */
@Entity
@Table(name="account_report_tbl")
public class AccountReport extends AbstractBOM implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@Column(name="ACCT_RPRT_CODE")
	private int acctRprtCode;

	private boolean required;

	//bi-directional many-to-one association to Account
	@ManyToOne
	@JoinColumn(name="ACCT_CODE")
	private Account account;

	//bi-directional many-to-one association to Report
	@ManyToOne
	@JoinColumn(name="RPRT_CODE")
	private Report report;

	//bi-directional many-to-one association to EmployeeAccountReport
	@OneToMany(mappedBy="accountReport")
	private List<EmployeeAccountReport> employeeAccountReports;

	public AccountReport() {
	}

	public int getAcctRprtCode() {
		return this.acctRprtCode;
	}

	public void setAcctRprtCode(int acctRprtCode) {
		this.acctRprtCode = acctRprtCode;
	}

	public boolean getRequired() {
		return this.required;
	}

	public void setRequired(boolean required) {
		this.required = required;
	}

	public Account getAccount() {
		return this.account;
	}

	public void setAccount(Account account) {
		this.account = account;
	}

	public Report getReport() {
		return this.report;
	}

	public void setReport(Report report) {
		this.report = report;
	}

	public List<EmployeeAccountReport> getEmployeeAccountReports() {
		return this.employeeAccountReports;
	}

	public void setEmployeeAccountReports(List<EmployeeAccountReport> employeeAccountReports) {
		this.employeeAccountReports = employeeAccountReports;
	}

}